package com.hk.service.order;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.order.OrderInfo;
import com.hk.commons.entity.order.OrderStatements;

public interface IOrderStatements {
	
	public OrderStatements findById(long id);

	public Long copyFromOrderFile(OrderInfo order);
	
	
	
	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(OrderStatements u);
	
	
	

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(OrderStatements u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(OrderStatements u);

	public List<OrderStatements> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<OrderStatements> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
	
	public OrderStatements getByBrokerOrderNo(String brokerOrderNo);
}
